]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dbusServices/extensions: Stop using GtkToolbar
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Apr 2020 18:27:15 +0000 (20:27 +0200)
committerMarge Bot <marge-bot@gnome.org>
Thu, 14 Jan 2021 13:03:21 +0000 (13:03 +0000)
Toolbars have been removed from GTK4, so just use a regular GtkBox
for the error details bottom bar.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1495>

js/dbusServices/extensions/css/application.css
js/dbusServices/extensions/ui/extension-prefs-dialog.ui

index 06914ea3c10b49b89b89d0293dd390d2d43ba831..1acbf36c8972907d2115a843d6c234e21b8a2f48 100644 (file)
@@ -1,2 +1,6 @@
 .expander-frame > * { border-top-width: 0; }
-.expander-toolbar { border: 0 solid @borders; border-top-width: 1px; }
+.expander-toolbar {
+  border: 0 solid @borders;
+  border-top-width: 1px;
+  padding: 3px;
+}
index e7895bba622f4a09d73801bb177eb3eb67508b6b..020bc4462947aa876324f7bd043149895c9ae9d3 100644 (file)
                                       </object>
                                     </child>
                                     <child>
-                                      <object class="GtkToolbar">
+                                      <object class="GtkBox">
                                         <property name="visible">True</property>
                                         <style>
                                           <class name="expander-toolbar"/>
                                         </style>
                                         <child>
-                                          <object class="GtkToolItem">
+                                          <object class="GtkButton">
                                             <property name="visible">True</property>
+                                            <property name="can-focus">True</property>
+                                            <property name="receives-default">True</property>
+                                            <property name="action-name">win.copy-error</property>
+                                            <style>
+                                              <class name="flat"/>
+                                              <class name="image-button"/>
+                                            </style>
                                             <child>
-                                              <object class="GtkButton">
+                                              <object class="GtkImage">
                                                 <property name="visible">True</property>
-                                                <property name="can-focus">True</property>
-                                                <property name="receives-default">True</property>
-                                                <property name="action-name">win.copy-error</property>
-                                                <style>
-                                                  <class name="flat"/>
-                                                  <class name="image-button"/>
-                                                </style>
-                                                <child>
-                                                  <object class="GtkImage">
-                                                    <property name="visible">True</property>
-                                                    <property name="icon-name">edit-copy-symbolic</property>
-                                                  </object>
-                                                </child>
+                                                <property name="icon-name">edit-copy-symbolic</property>
                                               </object>
                                             </child>
                                           </object>
                                         </child>
                                         <child>
-                                          <object class="GtkSeparatorToolItem">
-                                            <property name="visible">True</property>
-                                            <property name="draw">False</property>
-                                          </object>
-                                          <packing>
-                                            <property name="expand">True</property>
-                                          </packing>
-                                        </child>
-                                        <child>
-                                          <object class="GtkToolItem">
-                                            <property name="visible">True</property>
-                                            <child>
-                                              <object class="GtkButton" id="homeButton">
-                                                <property name="visible"
-                                                          bind-source="homeButton"
-                                                          bind-property="sensitive"
-                                                          bind-flags="sync-create"/>
-                                                <property name="hexpand">True</property>
-                                                <property name="halign">end</property>
-                                                <property name="label" translatable="yes">Homepage</property>
-                                                <property name="tooltip-text" translatable="yes">Visit extension homepage</property>
-                                                <property name="can-focus">True</property>
-                                                <property name="receives-default">True</property>
-                                                <property name="no-show-all">True</property>
-                                                <property name="action-name">win.show-url</property>
-                                                <style>
-                                                  <class name="flat"/>
-                                                </style>
-                                              </object>
-                                            </child>
+                                          <object class="GtkButton" id="homeButton">
+                                            <property name="visible"
+                                                      bind-source="homeButton"
+                                                      bind-property="sensitive"
+                                                      bind-flags="sync-create"/>
+                                            <property name="hexpand">True</property>
+                                            <property name="halign">end</property>
+                                            <property name="label" translatable="yes">Homepage</property>
+                                            <property name="tooltip-text" translatable="yes">Visit extension homepage</property>
+                                            <property name="can-focus">True</property>
+                                            <property name="receives-default">True</property>
+                                            <property name="no-show-all">True</property>
+                                            <property name="action-name">win.show-url</property>
+                                            <style>
+                                              <class name="flat"/>
+                                            </style>
                                           </object>
                                         </child>
                                       </object>